﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Windows.Forms;

namespace NGCDS
{
    public class ApplicationUtil
    {
        private static string PATH = Application.StartupPath;

        public static string ApplicationStartupDisk
        {
            get
            {
                return PATH.Substring(0, PATH.IndexOf(":") + 1);
            }
            private set { }
        }

        public static string ApplicationStartupPath
        {
            get
            {
                return PATH;
            }
            private set { }
        }

        public static string ApplicationExecutablePath
        {
            get
            {
                return Application.ExecutablePath;
            }
            private set { }
        }

        public static int CurrentProcessID
        {
            get
            {
                return Process.GetCurrentProcess().Id;
            }
            private set { }
        }

        public static DateTime ApplicationCreateTime
        {
            get
            {
                return File.GetLastWriteTime(ApplicationExecutablePath);
            }
            private set { }
        }
    }
}
